package com.ybzl.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ybzl.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ybzl.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/*
 * Desc：实体类
 * @Author xin
 * @Company yb.com
 * @Since  2023-08-21
 */
@Data
@TableName(value = "iot_data")
@ApiModel(value = "IotData", description = "数据实体")
public class IotData {
    /**
     *
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "")
    private String id;
    /**
     * 设备（盒子）id
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value = "设备（盒子）id")
    private String deviceId;
    /**
     * 指标名称
     */
    @TableField(value = "index_name")
    @ApiModelProperty(value = "指标名称")
    private String indexName;
    /**
     * 指标值
     */
    @TableField(value = "index_value")
    @ApiModelProperty(value = "指标值")
    private Object indexValue;
    /**
     * 记录时间
     */
    @TableField(value = "add_time")
    @ApiModelProperty(value = "记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;

    /**
     * 单位
     */
    @TableField(value = "unit")
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 所属井
     */
    @TableField(value = "isjing")
    @ApiModelProperty(value = "所属井")
    private String isjing;

    /**
     *
     */
    @TableField(exist = false)
    private String xzhou;
}
